package com.nciae.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nciae.po.Admin;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public interface IAdminService extends IService<Admin> {

    List<Admin> findAll(int index, int capacity, String username);

    void add(Admin admin);

    void update(Admin admin);

    void delete(Long id);

    Admin findAdminById(Long id);

    Admin login(String username, String password);
}
